Skip to content

[release-2.1] feat(ci): build must-gather image hermetically in upstream repo [RHIDP-14412] - #415

Merged
rm3l merged 7 commits into
redhat-developer:release-2.1from
openshift-cherrypick-robot:cherry-pick-218-to-release-2.1
Sep 30, 2026
Merged

rm3l merged 7 commits into
redhat-developer:release-2.1from
openshift-cherrypick-robot:cherry-pick-218-to-release-2.1

Conversation

@openshift-cherrypick-robot

Copy link
Copy Markdown

This is an automated cherry-pick of #218

/assign rm3l

Fortune-Ndlovu and others added 7 commits September 30, 2026 12:28
Wire PR and main/release CI to Hermeto (gomod + rpm) via the Konflux
Containerfile, aligned with rhdh-operator hermetic builds.

Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
Run the go-builder stage as root and set GOCACHE outside the prefetched
gomod tree so buildah builds match Konflux/rhdh-operator behavior.

Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
…14412]

Wire make hermetic-build and local-hermeto-build.sh to use the same
version string as make image-build instead of hardcoding 0.0.0-local.

Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
…14412]

Read HERMETO_IMAGE from the Makefile in both CI and the local script so
the tags cannot drift, and explain why the go-builder stage runs as root.

Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
Also chmod the local hermeto cache after inject-files so it matches CI
and Konflux expectations for rootless builds.

Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
…DP-14412]

Drop USER 0 now that Hermeto cache dirs are chmodded for CI and local
hermetic builds, matching midstream/Konflux practice.

Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
@github-actions

Copy link
Copy Markdown
Contributor

PR images are available (for 1 week):

  1. quay.io/rhdh-community/rhdh-must-gather:pr-415
  2. quay.io/rhdh-community/rhdh-must-gather:pr-415-888d0be6f

@rm3l
rm3l merged commit 40c45bc into redhat-developer:release-2.1 Sep 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants